package cn.njxzc.Java2017;

/**
 *
 */
public class A {

	public A() {
		System.out.println("Constructor A");
	}

	{
		System.out.println("Field A");
	}
	static {
		System.out.println("Static A");
	}
}

/**
 * 
 */
class B extends A {
	public B() {
		System.out.println("Constructor B");
	}

	{
		System.out.println("Field B");
	}
	static {
		System.out.println("Static B");
	}

	public static void main(String[] args) {
		new A();
		new B();
	}

}
